package com.hourses.service;

import com.hourses.pojo.ProductType;
import com.hourses.pojo.Result;

import java.util.List;

public interface ProductTypeService {
    //查询所有商品的商品分类树
    public List<ProductType> selectAllTypeTree();

    //根据type_code查询商品分类
    public Result selectByTypeCode(ProductType productType);

    //根据tupeName查询productType
    public ProductType selectByTypeName(String typeName);

    //增加商品分类
    public Result insertProductType(ProductType productType);

    //删除商品分类
    public Result deleteProducttype(Integer typeId);

    //修改商品分类
    public Result updateProductType(ProductType productType);
}
